package org.example.onlineEducation.service;

import org.example.onlineEducation.dao.UserDao;
import org.example.onlineEducation.entity.User;
import org.example.onlineEducation.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Service;

import java.util.Objects;

@Service
public class UserService {

    @Autowired
    private UserDao dao;

    public User selectByUsername(String username){
        return dao.selectByUsername(username);
    }


}
